<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>  
   <title>My JSP 'index.jsp' starting page</title>
 </head>
  
  <body>
  
  <% 
	  String code=request.getParameter("code");
	  if(code!=null&&"101".equals(code)){
  %>
   <div style="color:red">用户名或密码是错误的</div>
   <%}else if(code!=null&&"102".equals(code)){%>
   <div style="color:red">请输入用户名或密码</div>
   <%}else if(code!=null&&"104".equals(code)){%>
   <div style="color:green">请先登录噢！</div>
   <%}%>
	  
   <h3>登录系统</h3>
   <form action="login.jspx" method="post">
   		用户名：<input type="text" name="username"/><br/>
   		密码：<input type="password" name="password"/><br/>
   		    <input type="submit" value="进入系统"/>
   </form>
   
 		<img src="static/img/1.jpg"/>
   </body>
</html>
